prefix=$1
Ts=$2
orders=$3

echo "prefix="$prefix
echo "order="$orders
echo "T="$Ts

for T in $Ts
do
    result=result.$prefix.$T
    cat /dev/null > $result
    for order in $orders
    do
	suffix=$prefix.$T.$order
	../cds --accuracy --negneg=negneg.1 --posneg=posneg.1 \
	    --negpos=negpos.$suffix --pospos=pospos.$suffix --output=acc.$suffix
	echo $order    `tail -n 1 acc.$suffix`      `tail -n 1 stats.$suffix` >> $result
    done
done
